package com.yanqu.road.server.cmd.wingroom.chakra;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.WingRoomChakraProto.WingRoomChakraProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.CmdApi;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.wingroom.WingRoomChakraModule;
import com.yanqu.road.server.protocol.GameProtocol;
import com.yanqu.road.server.protocol.Protocol;

@CmdApi(reqMsg = WingRoomChakraProto.WingRoomChakraDrawReqMsg.class, respMsg = WingRoomChakraProto.WingRoomChakraDrawRespMsg.class)
@Cmd(code = GameProtocol.S_CHAKRA_SYNC_BF_OLD_FUN_REWARD, desc = "命盘系统-补发原有家具解锁/升级道具补发")
public class ChakraBfWindWaterPropCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        WingRoomChakraProto.WingRoomChakraSendBfOldFurnitureRewardReqMsg reqMsg = WingRoomChakraProto.WingRoomChakraSendBfOldFurnitureRewardReqMsg.parseFrom(packet.getBytes());
        player.getModule(WingRoomChakraModule.class).bfOldWindWaterProp();
    }

    @Override
    public void sendData(GamePlayer player) {
    }
}
